Paul adds type identifiers to copilot.
authorrobertl <robertl>
Wed, 29 Nov 2006 20:47:02 +0000 (20:47 +0000)
committerrobertl <robertl>
Wed, 29 Nov 2006 20:47:02 +0000 (20:47 +0000)
copilot.c

index 75412523a73f5963c2ae879f50d4109be538b180..98725740e92e7ce2d8a57dc1b55de784fa0406cc 100644 (file)
--- a/copilot.c
+++ b/copilot.c
@@ -27,6 +27,7 @@
 
 #define MYNAME                 "CoPilot Waypoint"
 #define wayp_TYPE              0x77617970      /* wayp */
+#define wayu_TYPE              0x77617975      /* wayu */
 #define swpu_TYPE              0x73777075      /* swpu */
 #define GXPU_CREATOR   0x47584255              /* GXBU */
 #define AP_P_CREATOR   0x41502d50              /* AP-P */
@@ -218,7 +219,8 @@ data_read(void)
        }
 
        if ((pdb->creator != GXPU_CREATOR && pdb->creator != AP_P_CREATOR) ||
-               (pdb->type != wayp_TYPE && pdb->type != swpu_TYPE)) {
+               (pdb->type != wayp_TYPE && pdb->type != swpu_TYPE &&
+               pdb->type != wayu_TYPE)) {
                fatal(MYNAME ": Not a CoPilot file.\n");
        }
        if (pdb->version > 4) {